package com.wudi.estate.service.ownermanagement;

import com.github.pagehelper.PageInfo;
import com.wudi.estate.bean.ownermanagement.Pet;

import java.util.List;
import java.util.Map;

public interface PetService {

    //查询全部宠物数据
    List<Pet> selectAll() throws Exception;
    PageInfo<Map<String,Object>> selectAllTwo(Integer startPage,Integer size) throws Exception;
    //根据编号查询宠物数据
    Pet selectById(Pet p) throws Exception;
    //根据id修改信息
    void updateById(Pet p) throws Exception;
    //根据id修改状态
    void updateStateById(Pet p) throws Exception;
    //添加宠物数据
    void insert(Pet p) throws Exception;

    //模糊查询
    List<Pet> selectByName(String somename) throws Exception;


}
